package com.ivan.action.user;

import com.ivan.entity.User;
import com.ivan.utils.BaseModel;
import org.apache.struts2.ServletActionContext;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ivan
 * Date: 12-6-14
 * Time: 下午2:43
 * To change this template use File | Settings | File Templates.
 */
public class UserModel extends BaseModel {

    private User user;

    private String userId;

    private List<User> userList;


    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCtx(){
        return ServletActionContext.getRequest().getContextPath();
    }
}
